/** 
 * Project Name:sfsp_dao 
 * File Name:OrgRoleGroup.java 
 * Package Name:com.hyht.entity 
 * Date:2017年6月20日上午10:50:14 
 * Copyright (c) 2017 hangyunhuitong.com 
 * 
 */
package com.wanlian.entity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.wanlian.json.MyTimestampDeserializer;
import com.wanlian.util.DateUtil;

import javax.persistence.*;
import java.sql.Timestamp;


@Entity
@Table(name = "tb_orgrolegroup")
public class OrgRoleGroup
{
    @Id
    @GeneratedValue
    private int roleGroupId;

    @Column(name="parentid")
    private int parentid;

    @Column(name="rolegroupname")
    private String rolegroupname;

    @Column(name="rolegroupdesc")
    private String rolegroupdesc;

    @Column(name="createid")
    private int createId;

    @Column(name="createtime")
    @JsonDeserialize(using = MyTimestampDeserializer.class)
    private Timestamp createtime;

    @Column(name="lastupdatetime")
    @JsonDeserialize(using = MyTimestampDeserializer.class)
    private Timestamp lastupdatetime;

    @Column(name="isenable")
    private boolean isenable;

    @Column(name="isdel")
    private boolean isdel;

    @Column(name="alias")
    private String alias;

    @Column(name="remark")
    private String remark;

    @Column(name = "candel")
    private boolean canDel;

    public OrgRoleGroup()
    {
        this.parentid = 0;
        this.createtime = DateUtil.currentTimestamp();
        this.lastupdatetime = new Timestamp(System.currentTimeMillis());
        this.isdel = false;
        this.isenable = true;
        this.createId = 0;
        this.canDel = true;
    }

	public int getRoleGroupId()
    {
        return roleGroupId;
    }

    public void setRoleGroupId(int roleGroupId)
    {
        this.roleGroupId = roleGroupId;
    }

    public int getParentid()
    {
        return parentid;
    }

    public void setParentid(int parentid)
    {
        this.parentid = parentid;
    }

    public String getRolegroupname()
    {
        return rolegroupname;
    }

    public void setRolegroupname(String rolegroupname)
    {
        this.rolegroupname = rolegroupname;
    }

    public String getRolegroupdesc()
    {
        return rolegroupdesc;
    }

    public void setRolegroupdesc(String rolegroupdesc)
    {
        this.rolegroupdesc = rolegroupdesc;
    }

    public int getCreateId() {
        return createId;
    }

    public void setCreateId(int createId) {
        this.createId = createId;
    }


    public Timestamp getLastupdatetime()
    {
        return lastupdatetime;
    }

    public void setLastupdatetime(Timestamp lastupdatetime)
    {
        this.lastupdatetime = lastupdatetime;
    }

    public boolean isIsenable()
    {
        return isenable;
    }

    public void setIsenable(boolean isenable)
    {
        this.isenable = isenable;
    }

    public boolean isIsdel()
    {
        return isdel;
    }

    public void setIsdel(boolean isdel)
    {
        this.isdel = isdel;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public Timestamp getCreatetime()
    {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime)
    {
        this.createtime = createtime;
    }

    public boolean isCanDel()
    {
        return canDel;
    }

    public void setCanDel(boolean canDel)
    {
        this.canDel = canDel;
    }

    public String getAlias()
    {
        return alias;
    }

    public void setAlias(String alias)
    {
        this.alias = alias;
    }

}
